package qc.module.ehs.mapper;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import qc.module.ehs.dto.camera.CameraDto;
import qc.module.ehs.entity.EhsCameraInfo;

import java.util.List;

/**
 * EhsCameraInfoMapper
 *
 * @author QuCheng Tech
 * @since 2025/6/24
 */
@Mapper
public interface EhsCameraInfoMapper {
    EhsCameraInfoMapper MAPPER = Mappers.getMapper(EhsCameraInfoMapper.class);

    /**
     * entity -> dto
     *
     * @param en
     * @return
     */
    CameraDto toDto(EhsCameraInfo en);

    /**
     * List<entity> -> List<dto>
     *
     * @param ens
     * @return
     */
    List<CameraDto> toDtoList(List<EhsCameraInfo> ens);
}
